package com.dooioo.pns.api.leancloud;

import java.io.Serializable;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * PackageName:com.dooioo.pns.api.leancloud
 * Author: Jerry.hu
 * Create: Jerry.hu (2015-07-30 上午8:41)
 * Description:
 * To change this template use File | Settings | File Templates.
 */
public class Register implements Serializable{
	private String deviceType;
	private String deviceToken;
	private String installationId;
	private String[] channels;

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}

	public String getInstallationId() {
		return installationId;
	}

	public void setInstallationId(String installationId) {
		this.installationId = installationId;
	}

	public String[] getChannels() {
		return channels;
	}

	public void setChannels(String[] channels) {
		this.channels = channels;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("Register{");
		sb.append("deviceType='").append(deviceType).append('\'');
		sb.append(", deviceToken='").append(deviceToken).append('\'');
		sb.append(", installationId='").append(installationId).append('\'');
		sb.append(", channels=").append(channels == null ? "null" : Arrays.asList(channels).toString());
		sb.append('}');
		return sb.toString();
	}
}
